package com.zq.solr.test.doman;

import org.apache.solr.client.solrj.beans.Field;
import org.springframework.data.solr.core.mapping.SolrDocument;

/**
 * Created by system.out on 2017/3/17.
 */
@SolrDocument( solrCoreName = "user")
public class User {
    @Field
    private int id;
    @Field("username")
    private String username;
    @Field("password")
    private String password;
    @Field
    private int classesId;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public int getClassesId() {
        return classesId;
    }

    public void setClassesId(int classesId) {
        this.classesId = classesId;
    }
}
